<?php
include "include/config.inc.php";
if(!isset($_SESSION['s_activId']))
{
  header('location:checkLogin.php');
}
$partyArray = array();
$i=0;

$selectLoan = "SELECT partyId,partyName,address,mobile,photo,otherInfo
                 FROM party";
$selectLoanRes = mysql_query($selectLoan);
while($loanRow = mysql_fetch_array($selectLoanRes))
{
	$partyArray[$i]['partyId']       = $loanRow['partyId'];
	$partyArray[$i]['partyName']     = $loanRow['partyName'];
	$partyArray[$i]['address']       = $loanRow['address'];
	$partyArray[$i]['mobile']        = $loanRow['mobile'];
	$partyArray[$i]['photo']         = $loanRow['photo'];
	$partyArray[$i]['otherInfo']     = $loanRow['otherInfo'];
	$i++;
}
include("bottom.php");
$smarty->assign('partyArray',$partyArray);  
$smarty->display('partyList.tpl');  
?>